package com.xxxx.yebserver.config.threadPool;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@Data
@Component
@ConfigurationProperties(prefix = "mythread-pool")
public class MyThreadPoolProperties {
    private Integer corePoolSize = 5;       //核心线程数量
    private Integer maximumPoolSize = 50;   //最大线程数量
    private Long keepAliveTime = 15L;       //线程存活时间
}
